package com.axxc.jpa.pattendegign.factory;

/**
 * @ClassName ColorFactory
 * @Description //TODO 生产颜色的工厂
 * @author xxc
 * @data 2018年8月30日下午8:52:39
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class ColorFactory {

	public static IColor getColor(String colorName) {
		IColor color = null;
		if ("red".equals(colorName)) {
			color = new RedColor();
		} else if ("blue".equals(colorName)) {
			color = new BlueClor();
		}

		return color;
	}

}
